package br.ufal.questione.email;

import java.util.Arrays;
import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TesteEnvioEmail {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		for (int i = 1; i < 2; i++) {
			List<String> emails = Arrays.asList("cloves.2007@gmail.com");
			ApplicationContext context = new ClassPathXmlApplicationContext(
					"mail.xml");

			EnvioEmail email = (EnvioEmail) context.getBean("envioEmail");
			try {
				email.enviarEmail(emails,"dsfsdfgfdsg");
			} catch (Exception e) {
				e.printStackTrace();
			}

		}
	}
}
